package main

import "fmt"

type Student struct {
	id   int
	name string
	sex  byte // 字符类型，ASCII
}

func main() {
	// 顺序初始化，每个成员必须初始化
	var s1 Student = Student{1, "alfo", 'm'}
	fmt.Println("s1 =", s1) // s1 = {1 alfo 109}

	s2 := Student{id: 1, name: "luck"}
	fmt.Println("s2 =", s2) // s2 = {1 luck 0}
}
